strings = input("请输入一个字符串：")
dc = {}
for word in strings:
    if word.isalpha() or word.isdigit():
        if word not in dc:
            dc[word] = 1
        else:
            dc[word] += 1
print(dc)